import wx

def hd_onset(self,pos,cf):
    x=pos[0]
    y=pos[1]
    wx.StaticText(self.scroll21,-1," >>> Is the headache sudden in onset or gradual?"+ "\tCF: " +cf,pos=(x,y))
    y=y+25
    options = ['Unanswered','Gradual','Sudden over gradual','Sudden']
    box=wx.RadioBox(self.scroll21,-1, "Select only one:", (x+55,y), wx.DefaultSize, options, 1, wx.RA_SPECIFY_ROWS)


    def OnValidate(event):
        print str.lower(str(box.GetStringSelection()))
        pass
    
    self.Bind(wx.EVT_RADIOBOX,OnValidate,box)    
    y=y+60
    return x,y
    
def hd_location(self,pos,cf):
    x=pos[0]
    y=pos[1]
    wx.StaticText(self.scroll21,-1," >>> Where Exactly do you feel the headache?"+"\tCF: " +str(cf),pos=(x,y))
    
    sampleList = ['Front of the head (Frontal)', 'Temples (Temporal)', 'Back of the head (Occipital)', 'Sides of the head (Parietal)', 'Behind the eyes (RetroOrbital)','All over the head (Complete)', 'Multiple Areas (Temporo-parietal)','Unanswered']
    y=y+25
    wx.RadioBox(self.scroll21, -1, "Select only one:", (x+55, y), wx.DefaultSize,
                sampleList, 2, wx.RA_SPECIFY_COLS)
    y=y+135
    return x,y

# Static Text requires space of 25. Single Check box row of 40. A Single radio box row of 60. A four row radiobox of 130. A textctrl with 25y button-40 

def hd_duration(self,pos,cf):
    x=pos[0]
    y=pos[1]
    wx.StaticText(self.scroll21,-1," >>> Since how long do you have headache?"+ "\tCF: " +str(cf),pos=(x,y))
    y=y+25
    duration=wx.TextCtrl(self.scroll21, -1, "0hrs 0days 0months 0years",size=(225, -1),pos=(x+55,y))
    valbutton=wx.Button(self.scroll21,-1,"Validate",pos=(x+295,y),size=(100,25))
    y=y+40

    def OnValidate(event):
        print duration.GetValue()
        pass
        
    self.Bind(wx.EVT_BUTTON,OnValidate,valbutton)
    return x,y



def hd_episodic(self,pos,cf):
    x=pos[0]
    y=pos[1]
    wx.StaticText(self.scroll21,-1," >>> Is the Headache Episodic?"+ "\tCF: " +str(cf),pos=(x,y))
    y=y+25
    options = ['Yes','No','Unanswered']
    wx.RadioBox(self.scroll21,-1, "Select only one:", (x+50,y), wx.DefaultSize, options, 1, wx.RA_SPECIFY_ROWS)
    y=y+60
    return x,y
